/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.DomUtil;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import org.dom4j.DocumentHelper;
/*    */ import org.dom4j.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcContactActionRequest
/*    */   extends LmcSoapRequest
/*    */ {
/*    */   private String mIDList;
/*    */   private String mOp;
/*    */   private String mFolder;
/*    */   private String mTag;
/*    */   
/*    */   public void setIDList(String idList)
/*    */   {
/* 42 */     this.mIDList = idList;
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   public void setOp(String op)
/*    */   {
/* 51 */     this.mOp = op;
/*    */   }
/*    */   
/*    */   public void setTag(String t) {
/* 55 */     this.mTag = t;
/*    */   }
/*    */   
/*    */   public void setFolder(String f) {
/* 59 */     this.mFolder = f;
/*    */   }
/*    */   
/*    */   public String getIDList() {
/* 63 */     return this.mIDList;
/*    */   }
/*    */   
/*    */   public String getOp() {
/* 67 */     return this.mOp;
/*    */   }
/*    */   
/*    */   public String getFolder() {
/* 71 */     return this.mFolder;
/*    */   }
/*    */   
/*    */   public String getTage() {
/* 75 */     return this.mTag;
/*    */   }
/*    */   
/*    */   protected Element getRequestXML() {
/* 79 */     Element request = DocumentHelper.createElement(MailConstants.CONTACT_ACTION_REQUEST);
/* 80 */     Element a = DomUtil.add(request, "action", "");
/* 81 */     DomUtil.addAttr(a, "id", this.mIDList);
/* 82 */     DomUtil.addAttr(a, "op", this.mOp);
/* 83 */     addAttrNotNull(a, "tag", this.mTag);
/* 84 */     addAttrNotNull(a, "l", this.mFolder);
/* 85 */     return request;
/*    */   }
/*    */   
/*    */   protected LmcSoapResponse parseResponseXML(Element responseXML)
/*    */     throws ServiceException
/*    */   {
/* 91 */     LmcContactActionResponse response = new LmcContactActionResponse();
/* 92 */     Element a = DomUtil.get(responseXML, "action");
/* 93 */     response.setIDList(DomUtil.getAttr(a, "id"));
/* 94 */     response.setOp(DomUtil.getAttr(a, "op"));
/* 95 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcContactActionRequest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */